package com.jambo.yudada.config;

import com.volcengine.ark.runtime.service.ArkService;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

//豆包
@Configuration
@ConfigurationProperties(prefix = "ai2")
@Data
public class AiConfig {
    /**
     * apikey从配置文件获取
     */
    private String apiKey;
    @Bean
    public ArkService getClientArk(){
        return new ArkService(apiKey);
    }
}
